Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New time parameter #60

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

New time parameter #60

wants to merge 1 commit into from

Conversation

rschirin
Copy link

@rschirin rschirin commented Jan 21, 2023

Hey there,
I have modified the official master branch with a custom release. Basically, I modified the section related to span documents over a window time. Since I had the need to distribute documents in a smaller window time (i.e. only 10 minutes) I implemented this feature. Maybe it could be helpful also to someone else.
The command line follow the example below:

docker run --rm makelogs --url "https://elastic:[email protected]:9200/" --indexPrefix "test-" -c 300 --time "30m/2h" --no-reset

I haven't any particular JS experience, so I modified the code just to get my purpose avoiding any noticeable error.
Just a fast recap:
-d classic behavior with default value if no value has been specified (1 day before and 1 day forward)
-t new behavior with default value if no value has been specified (1 day before and 1 day forward)

In a specific way:

-t 2 (2 days before till today)
-t 5h (5 hours before till today)
-t 1/2 (1 day before and 2 days forward)
-t 3h/50m (3 hours before and 5 minutes forward)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant